/* ==================================================================   
 * Created [2009-4-27 下午11:32:55] by Jon.King 
 * ==================================================================  
 * TSS 
 * ================================================================== 
 * mailTo:jinpujun@hotmail.com
 * Copyright (c) Jon.King, 2009-2012 
 * ================================================================== 
 */

package com.jinhe.tss.component.dynproperty.entity;

import java.io.Serializable;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.jinhe.tss.core.persistence.IEntity;

/** 
 * <p> PropertyTab.java </p> 
 * <p>属性对Tab中间表</p>
 * 
 * 如果属性对应defId在本表中存在，则说明该属性尚在使用中，不允许被删除。
 * 
 * @author Jon.King 2008/04/14 10:18:10  
 * 
 */
@Entity
@Table(name = "component_dyn_property_tab")
public class PropertyTab implements IEntity, Serializable{

    private static final long serialVersionUID = 1662153015116492361L;

    @EmbeddedId  
    @AttributeOverrides({  
             @AttributeOverride(name="defId", column=@Column(name="defId")),  
             @AttributeOverride(name="tabId", column=@Column(name="tabId"))  
    })  
    private PropertyTabId id;
    
    public PropertyTab(){
        this.id = new PropertyTabId();
    }

 
    public PropertyTabId getId() {
        return id;
    }
 
    public void setId(PropertyTabId id) {
        this.id = id;
    }
}

